<%@ Page AutoEventWireup="true" CodeBehind="ArchiveViewer.aspx.cs" Inherits="Dascoba.Umb.FileManager.Pages.ArchiveViewer"
    Language="C#" MasterPageFile="../../masterpages/umbracoPage.master" ValidateRequest="false" %>

<%@ Register Assembly="controls" Namespace="umbraco.uicontrols" TagPrefix="cc1" %>

<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
    <script type="text/javascript">

        $(window).load(function () {
            resizecontent();
        });

        $(window).resize(function () {
            resizecontent();
        });

        $(window).focus(function () {
            if (actionComplete == 0) {
                window.location.href = window.location.href;
                actionComplete = 1;
            }
        });

        function resizecontent() {
            var contentHeight = $(window).height() - <%=this.ViewerOffset %>;
            $('#<%=this.panel_archivecontent.ClientID %>').height(contentHeight);
            $('.tabpagescrollinglayer').css('overflow', 'hidden');
        }

    </script>
</asp:Content>
<asp:Content ContentPlaceHolderID="body" ID="bodyContent" runat="server">
    <cc1:TabView ID="tabs_archivecontent" runat="server" />
    <cc1:Pane ID="pane_archivecontent" runat="server">
        <asp:Panel ID="panel_archivecontent" style="overflow:auto;width:100%;height:100%;" runat="server" BackColor="White" 
            BorderStyle="Inset" BorderWidth="1px" ScrollBars="Auto">
            <asp:Repeater ID="contentRepeater" runat="server">
            </asp:Repeater>
        </asp:Panel>
    </cc1:Pane>
</asp:Content>
